package com.dao.impl;

import com.dao.loginDao;
import com.domain.Student;

import java.util.ArrayList;
import java.util.Collections;
import java.util.List;

public class loginDaoimpl implements loginDao {
    //定义一个静态
    public static List<Student> longeAll=new ArrayList<>();
    static {
        Collections.addAll(longeAll,
                new Student("aaa","123"),
                new Student("bbb","234"),
                new Student("ccc","345"),
                new Student("ddd","456"),
                new Student("eee","567")
        );
    }

    @Override
    public List<Student> selectAll() {
        return longeAll;
    }
}
